//
//  UILabel+TitleAndDetail.m
//  YIJU2.0-HD
//
//  Created by 陈柏兵 on 16/5/9.
//  Copyright © 2016年 张金国. All rights reserved.
//

#import "UILabel+TitleAndDetail.h"

@implementation UILabel (TitleAndDetail)

+(UILabel *)labelWithTextFont:(CGFloat)FontSize TextColor:(UIColor *)textColor titleText:(NSString *)title detailText:(NSString *)detail {
    UILabel *label = [[UILabel alloc] init];
    label.font = [UIFont systemFontOfSize:FontSize];
    label.textColor = textColor;
    if (detail == nil) {
        label.text = [[title stringByAppendingString:@":"] stringByAppendingString:@"--"];
    } else {
        label.text = [[title stringByAppendingString:@":"] stringByAppendingString:detail];
    }
    
    return label;
}

@end
